3.714 \(\int \frac{(c+d \sin (e+f x))^5}{(a+b \sin (e+f x))^3} \, dx\)

Optimal. Leaf size=534 \[ -\frac{d \left (-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+30 a^4 b c d^3-12 a^5 d^4+a b^4 \left (43 c^2 d^2+6 c^4-6 d^4\right )-b^5 c d \left (17 c^2-10 d^2\right )\right ) \cos (e+f x)}{2 b^4 f \left (a^2-b^2\right )^2}+\frac{(b c-a d)^3 \left (a^2 b^2 \left (2 c^2-29 d^2\right )+6 a^3 b c d+12 a^4 d^2-12 a b^3 c d+b^4 \left (c^2+20 d^2\right )\right ) \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (e+f x)\right )+b}{\sqrt{a^2-b^2}}\right )}{b^5 f \left (a^2-b^2\right )^{5/2}}+\frac{d^2 \left (a^2 b^2 d \left (c^2+10 d^2\right )+7 a^3 b c d^2-6 a^4 d^3-a b^3 c \left (3 c^2+16 d^2\right )+b^4 d \left (8 c^2-d^2\right )\right ) \sin (e+f x) \cos (e+f x)}{2 b^3 f \left (a^2-b^2\right )^2}-\frac{d^3 x \left (-12 a^2 d^2+30 a b c d+b^2 \left (-\left (20 c^2+d^2\right )\right )\right )}{2 b^5}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b f \left (a^2-b^2\right ) (a+b \sin (e+f x))^2}+\frac{(b c-a d)^2 \left (4 a^2 d+3 a b c-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 f \left (a^2-b^2\right )^2 (a+b \sin (e+f x))} \]

[Out]

-(d^3*(30*a*b*c*d - 12*a^2*d^2 - b^2*(20*c^2 + d^2))*x)/(2*b^5) + ((b*c - a*d)^3*(6*a^3*b*c*d - 12*a*b^3*c*d +
 12*a^4*d^2 + a^2*b^2*(2*c^2 - 29*d^2) + b^4*(c^2 + 20*d^2))*ArcTan[(b + a*Tan[(e + f*x)/2])/Sqrt[a^2 - b^2]])
/(b^5*(a^2 - b^2)^(5/2)*f) - (d*(30*a^4*b*c*d^3 - 12*a^5*d^4 - a^3*b^2*d^2*(16*c^2 - 21*d^2) - b^5*c*d*(17*c^2
 - 10*d^2) - a^2*b^3*c*d*(4*c^2 + 55*d^2) + a*b^4*(6*c^4 + 43*c^2*d^2 - 6*d^4))*Cos[e + f*x])/(2*b^4*(a^2 - b^
2)^2*f) + (d^2*(7*a^3*b*c*d^2 - 6*a^4*d^3 + b^4*d*(8*c^2 - d^2) + a^2*b^2*d*(c^2 + 10*d^2) - a*b^3*c*(3*c^2 +
16*d^2))*Cos[e + f*x]*Sin[e + f*x])/(2*b^3*(a^2 - b^2)^2*f) + ((b*c - a*d)^2*(3*a*b*c + 4*a^2*d - 7*b^2*d)*Cos
[e + f*x]*(c + d*Sin[e + f*x])^2)/(2*b^2*(a^2 - b^2)^2*f*(a + b*Sin[e + f*x])) + ((b*c - a*d)^2*Cos[e + f*x]*(
c + d*Sin[e + f*x])^3)/(2*b*(a^2 - b^2)*f*(a + b*Sin[e + f*x])^2)

________________________________________________________________________________________

Rubi [A]  time = 2.15518, antiderivative size = 534, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.32, Rules used = {2792, 3047, 3033, 3023, 2735, 2660, 618, 204} \[ -\frac{d \left (-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+30 a^4 b c d^3-12 a^5 d^4+a b^4 \left (43 c^2 d^2+6 c^4-6 d^4\right )-b^5 c d \left (17 c^2-10 d^2\right )\right ) \cos (e+f x)}{2 b^4 f \left (a^2-b^2\right )^2}+\frac{(b c-a d)^3 \left (a^2 b^2 \left (2 c^2-29 d^2\right )+6 a^3 b c d+12 a^4 d^2-12 a b^3 c d+b^4 \left (c^2+20 d^2\right )\right ) \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (e+f x)\right )+b}{\sqrt{a^2-b^2}}\right )}{b^5 f \left (a^2-b^2\right )^{5/2}}+\frac{d^2 \left (a^2 b^2 d \left (c^2+10 d^2\right )+7 a^3 b c d^2-6 a^4 d^3-a b^3 c \left (3 c^2+16 d^2\right )+b^4 d \left (8 c^2-d^2\right )\right ) \sin (e+f x) \cos (e+f x)}{2 b^3 f \left (a^2-b^2\right )^2}-\frac{d^3 x \left (-12 a^2 d^2+30 a b c d+b^2 \left (-\left (20 c^2+d^2\right )\right )\right )}{2 b^5}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b f \left (a^2-b^2\right ) (a+b \sin (e+f x))^2}+\frac{(b c-a d)^2 \left (4 a^2 d+3 a b c-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 f \left (a^2-b^2\right )^2 (a+b \sin (e+f x))} \]

Antiderivative was successfully verified.

[In]

Int[(c + d*Sin[e + f*x])^5/(a + b*Sin[e + f*x])^3,x]

[Out]

-(d^3*(30*a*b*c*d - 12*a^2*d^2 - b^2*(20*c^2 + d^2))*x)/(2*b^5) + ((b*c - a*d)^3*(6*a^3*b*c*d - 12*a*b^3*c*d +
 12*a^4*d^2 + a^2*b^2*(2*c^2 - 29*d^2) + b^4*(c^2 + 20*d^2))*ArcTan[(b + a*Tan[(e + f*x)/2])/Sqrt[a^2 - b^2]])
/(b^5*(a^2 - b^2)^(5/2)*f) - (d*(30*a^4*b*c*d^3 - 12*a^5*d^4 - a^3*b^2*d^2*(16*c^2 - 21*d^2) - b^5*c*d*(17*c^2
 - 10*d^2) - a^2*b^3*c*d*(4*c^2 + 55*d^2) + a*b^4*(6*c^4 + 43*c^2*d^2 - 6*d^4))*Cos[e + f*x])/(2*b^4*(a^2 - b^
2)^2*f) + (d^2*(7*a^3*b*c*d^2 - 6*a^4*d^3 + b^4*d*(8*c^2 - d^2) + a^2*b^2*d*(c^2 + 10*d^2) - a*b^3*c*(3*c^2 +
16*d^2))*Cos[e + f*x]*Sin[e + f*x])/(2*b^3*(a^2 - b^2)^2*f) + ((b*c - a*d)^2*(3*a*b*c + 4*a^2*d - 7*b^2*d)*Cos
[e + f*x]*(c + d*Sin[e + f*x])^2)/(2*b^2*(a^2 - b^2)^2*f*(a + b*Sin[e + f*x])) + ((b*c - a*d)^2*Cos[e + f*x]*(
c + d*Sin[e + f*x])^3)/(2*b*(a^2 - b^2)*f*(a + b*Sin[e + f*x])^2)

Rule 2792

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> -S
imp[((b^2*c^2 - 2*a*b*c*d + a^2*d^2)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^(n + 1))/(
d*f*(n + 1)*(c^2 - d^2)), x] + Dist[1/(d*(n + 1)*(c^2 - d^2)), Int[(a + b*Sin[e + f*x])^(m - 3)*(c + d*Sin[e +
 f*x])^(n + 1)*Simp[b*(m - 2)*(b*c - a*d)^2 + a*d*(n + 1)*(c*(a^2 + b^2) - 2*a*b*d) + (b*(n + 1)*(a*b*c^2 + c*
d*(a^2 + b^2) - 3*a*b*d^2) - a*(n + 2)*(b*c - a*d)^2)*Sin[e + f*x] + b*(b^2*(c^2 - d^2) - m*(b*c - a*d)^2 + d*
n*(2*a*b*c - d*(a^2 + b^2)))*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] &
& NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 2] && LtQ[n, -1] && (IntegerQ[m] || IntegersQ[2*m, 2*n])

Rule 3047

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*s
in[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> -Simp[((c^2*C - B*c*d + A*d^2)*Cos[e +
 f*x]*(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x])^(n + 1))/(d*f*(n + 1)*(c^2 - d^2)), x] + Dist[1/(d*(n + 1)*(
c^2 - d^2)), Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])^(n + 1)*Simp[A*d*(b*d*m + a*c*(n + 1)) + (c
*C - B*d)*(b*c*m + a*d*(n + 1)) - (d*(A*(a*d*(n + 2) - b*c*(n + 1)) + B*(b*d*(n + 1) - a*c*(n + 2))) - C*(b*c*
d*(n + 1) - a*(c^2 + d^2*(n + 1))))*Sin[e + f*x] + b*(d*(B*c - A*d)*(m + n + 2) - C*(c^2*(m + 1) + d^2*(n + 1)
))*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2,
0] && NeQ[c^2 - d^2, 0] && GtQ[m, 0] && LtQ[n, -1]

Rule 3033

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])*((A_.) + (B_.)*sin[(e
_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> -Simp[(C*d*Cos[e + f*x]*Sin[e + f*x]*(a + b
*Sin[e + f*x])^(m + 1))/(b*f*(m + 3)), x] + Dist[1/(b*(m + 3)), Int[(a + b*Sin[e + f*x])^m*Simp[a*C*d + A*b*c*
(m + 3) + b*(B*c*(m + 3) + d*(C*(m + 2) + A*(m + 3)))*Sin[e + f*x] - (2*a*C*d - b*(c*C + B*d)*(m + 3))*Sin[e +
 f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] &&
!LtQ[m, -1]

Rule 3023

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> -Simp[(C*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(m + 2)), x] + Dist[1/(b*
(m + 2)), Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x]
, x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] &&  !LtQ[m, -1]

Rule 2735

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])/((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(b*x)/d
, x] - Dist[(b*c - a*d)/d, Int[1/(c + d*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d
, 0]

Rule 2660

Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> With[{e = FreeFactors[Tan[(c + d*x)/2], x]}, Dis
t[(2*e)/d, Subst[Int[1/(a + 2*b*e*x + a*e^2*x^2), x], x, Tan[(c + d*x)/2]/e], x]] /; FreeQ[{a, b, c, d}, x] &&
 NeQ[a^2 - b^2, 0]

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{(c+d \sin (e+f x))^5}{(a+b \sin (e+f x))^3} \, dx &=\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}-\frac{\int \frac{(c+d \sin (e+f x))^2 \left (7 b^2 c^2 d+3 a^2 d^3-2 a b c \left (c^2+4 d^2\right )-\left (a^2 c d^2+2 a b d \left (2 c^2+d^2\right )-b^2 \left (c^3+6 c d^2\right )\right ) \sin (e+f x)+2 d \left (2 a b c d-2 a^2 d^2-b^2 \left (c^2-d^2\right )\right ) \sin ^2(e+f x)\right )}{(a+b \sin (e+f x))^2} \, dx}{2 b \left (a^2-b^2\right )}\\ &=\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}+\frac{\int \frac{(c+d \sin (e+f x)) \left (11 a^3 b c d^3-8 a^4 d^4+b^4 c^2 \left (c^2+20 d^2\right )-a b^3 c d \left (15 c^2+32 d^2\right )+a^2 b^2 \left (2 c^4+7 c^2 d^2+14 d^4\right )+d \left (4 a^4 c d^2-b^4 c \left (c^2-8 d^2\right )+a^2 b^2 c \left (4 c^2-3 d^2\right )-a^3 b d \left (4 c^2-d^2\right )-a b^3 d \left (5 c^2+4 d^2\right )\right ) \sin (e+f x)-2 d \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \sin ^2(e+f x)\right )}{a+b \sin (e+f x)} \, dx}{2 b^2 \left (a^2-b^2\right )^2}\\ &=\frac{d^2 \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{2 b^3 \left (a^2-b^2\right )^2 f}+\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}+\frac{\int \frac{-2 \left (15 a^4 b c d^4-6 a^5 d^5-10 a^3 b^2 d^3 \left (c^2-d^2\right )-b^5 c^3 \left (c^2+20 d^2\right )+a b^4 d \left (15 c^4+40 c^2 d^2-d^4\right )-2 a^2 b^3 c \left (c^4+5 c^2 d^2+15 d^4\right )\right )+2 b d \left (b^4 d^2 \left (20 c^2+d^2\right )-a b^3 c d \left (17 c^2+20 d^2\right )-a^3 b \left (4 c^3 d-5 c d^3\right )+a^4 \left (4 c^2 d^2-2 d^4\right )+a^2 b^2 \left (6 c^4+3 c^2 d^2+4 d^4\right )\right ) \sin (e+f x)+2 d \left (30 a^4 b c d^3-12 a^5 d^4-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-b^5 c d \left (17 c^2-10 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+a b^4 \left (6 c^4+43 c^2 d^2-6 d^4\right )\right ) \sin ^2(e+f x)}{a+b \sin (e+f x)} \, dx}{4 b^3 \left (a^2-b^2\right )^2}\\ &=-\frac{d \left (30 a^4 b c d^3-12 a^5 d^4-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-b^5 c d \left (17 c^2-10 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+a b^4 \left (6 c^4+43 c^2 d^2-6 d^4\right )\right ) \cos (e+f x)}{2 b^4 \left (a^2-b^2\right )^2 f}+\frac{d^2 \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{2 b^3 \left (a^2-b^2\right )^2 f}+\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}+\frac{\int \frac{-2 b \left (15 a^4 b c d^4-6 a^5 d^5-10 a^3 b^2 d^3 \left (c^2-d^2\right )-b^5 c^3 \left (c^2+20 d^2\right )+a b^4 d \left (15 c^4+40 c^2 d^2-d^4\right )-2 a^2 b^3 c \left (c^4+5 c^2 d^2+15 d^4\right )\right )-2 \left (a^2-b^2\right )^2 d^3 \left (30 a b c d-12 a^2 d^2-b^2 \left (20 c^2+d^2\right )\right ) \sin (e+f x)}{a+b \sin (e+f x)} \, dx}{4 b^4 \left (a^2-b^2\right )^2}\\ &=-\frac{d^3 \left (30 a b c d-12 a^2 d^2-b^2 \left (20 c^2+d^2\right )\right ) x}{2 b^5}-\frac{d \left (30 a^4 b c d^3-12 a^5 d^4-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-b^5 c d \left (17 c^2-10 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+a b^4 \left (6 c^4+43 c^2 d^2-6 d^4\right )\right ) \cos (e+f x)}{2 b^4 \left (a^2-b^2\right )^2 f}+\frac{d^2 \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{2 b^3 \left (a^2-b^2\right )^2 f}+\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}+\frac{\left ((b c-a d)^3 \left (6 a^3 b c d-12 a b^3 c d+12 a^4 d^2+a^2 b^2 \left (2 c^2-29 d^2\right )+b^4 \left (c^2+20 d^2\right )\right )\right ) \int \frac{1}{a+b \sin (e+f x)} \, dx}{2 b^5 \left (a^2-b^2\right )^2}\\ &=-\frac{d^3 \left (30 a b c d-12 a^2 d^2-b^2 \left (20 c^2+d^2\right )\right ) x}{2 b^5}-\frac{d \left (30 a^4 b c d^3-12 a^5 d^4-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-b^5 c d \left (17 c^2-10 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+a b^4 \left (6 c^4+43 c^2 d^2-6 d^4\right )\right ) \cos (e+f x)}{2 b^4 \left (a^2-b^2\right )^2 f}+\frac{d^2 \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{2 b^3 \left (a^2-b^2\right )^2 f}+\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}+\frac{\left ((b c-a d)^3 \left (6 a^3 b c d-12 a b^3 c d+12 a^4 d^2+a^2 b^2 \left (2 c^2-29 d^2\right )+b^4 \left (c^2+20 d^2\right )\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (e+f x)\right )\right )}{b^5 \left (a^2-b^2\right )^2 f}\\ &=-\frac{d^3 \left (30 a b c d-12 a^2 d^2-b^2 \left (20 c^2+d^2\right )\right ) x}{2 b^5}-\frac{d \left (30 a^4 b c d^3-12 a^5 d^4-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-b^5 c d \left (17 c^2-10 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+a b^4 \left (6 c^4+43 c^2 d^2-6 d^4\right )\right ) \cos (e+f x)}{2 b^4 \left (a^2-b^2\right )^2 f}+\frac{d^2 \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{2 b^3 \left (a^2-b^2\right )^2 f}+\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}-\frac{\left (2 (b c-a d)^3 \left (6 a^3 b c d-12 a b^3 c d+12 a^4 d^2+a^2 b^2 \left (2 c^2-29 d^2\right )+b^4 \left (c^2+20 d^2\right )\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac{1}{2} (e+f x)\right )\right )}{b^5 \left (a^2-b^2\right )^2 f}\\ &=-\frac{d^3 \left (30 a b c d-12 a^2 d^2-b^2 \left (20 c^2+d^2\right )\right ) x}{2 b^5}+\frac{(b c-a d)^3 \left (6 a^3 b c d-12 a b^3 c d+12 a^4 d^2+a^2 b^2 \left (2 c^2-29 d^2\right )+b^4 \left (c^2+20 d^2\right )\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (e+f x)\right )}{\sqrt{a^2-b^2}}\right )}{b^5 \left (a^2-b^2\right )^{5/2} f}-\frac{d \left (30 a^4 b c d^3-12 a^5 d^4-a^3 b^2 d^2 \left (16 c^2-21 d^2\right )-b^5 c d \left (17 c^2-10 d^2\right )-a^2 b^3 c d \left (4 c^2+55 d^2\right )+a b^4 \left (6 c^4+43 c^2 d^2-6 d^4\right )\right ) \cos (e+f x)}{2 b^4 \left (a^2-b^2\right )^2 f}+\frac{d^2 \left (7 a^3 b c d^2-6 a^4 d^3+b^4 d \left (8 c^2-d^2\right )+a^2 b^2 d \left (c^2+10 d^2\right )-a b^3 c \left (3 c^2+16 d^2\right )\right ) \cos (e+f x) \sin (e+f x)}{2 b^3 \left (a^2-b^2\right )^2 f}+\frac{(b c-a d)^2 \left (3 a b c+4 a^2 d-7 b^2 d\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{2 b^2 \left (a^2-b^2\right )^2 f (a+b \sin (e+f x))}+\frac{(b c-a d)^2 \cos (e+f x) (c+d \sin (e+f x))^3}{2 b \left (a^2-b^2\right ) f (a+b \sin (e+f x))^2}\\ \end{align*}

Mathematica [C]  time = 3.80647, size = 341, normalized size = 0.64 \[ \frac{2 d^3 (e+f x) \left (12 a^2 d^2-30 a b c d+b^2 \left (20 c^2+d^2\right )\right )+\frac{4 (b c-a d)^3 \left (a^2 b^2 \left (2 c^2-29 d^2\right )+6 a^3 b c d+12 a^4 d^2-12 a b^3 c d+b^4 \left (c^2+20 d^2\right )\right ) \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (e+f x)\right )+b}{\sqrt{a^2-b^2}}\right )}{\left (a^2-b^2\right )^{5/2}}+\frac{2 b (b c-a d)^4 \left (7 a^2 d+3 a b c-10 b^2 d\right ) \cos (e+f x)}{\left (a^2-b^2\right )^2 (a+b \sin (e+f x))}-\frac{2 b (b c-a d)^5 \cos (e+f x)}{\left (b^2-a^2\right ) (a+b \sin (e+f x))^2}+2 b d^4 (3 a d-5 b c) (\cos (e+f x)-i \sin (e+f x))+2 b d^4 (3 a d-5 b c) (\cos (e+f x)+i \sin (e+f x))-b^2 d^5 \sin (2 (e+f x))}{4 b^5 f} \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*Sin[e + f*x])^5/(a + b*Sin[e + f*x])^3,x]

[Out]

(2*d^3*(-30*a*b*c*d + 12*a^2*d^2 + b^2*(20*c^2 + d^2))*(e + f*x) + (4*(b*c - a*d)^3*(6*a^3*b*c*d - 12*a*b^3*c*
d + 12*a^4*d^2 + a^2*b^2*(2*c^2 - 29*d^2) + b^4*(c^2 + 20*d^2))*ArcTan[(b + a*Tan[(e + f*x)/2])/Sqrt[a^2 - b^2
]])/(a^2 - b^2)^(5/2) + 2*b*d^4*(-5*b*c + 3*a*d)*(Cos[e + f*x] - I*Sin[e + f*x]) + 2*b*d^4*(-5*b*c + 3*a*d)*(C
os[e + f*x] + I*Sin[e + f*x]) - (2*b*(b*c - a*d)^5*Cos[e + f*x])/((-a^2 + b^2)*(a + b*Sin[e + f*x])^2) + (2*b*
(b*c - a*d)^4*(3*a*b*c + 7*a^2*d - 10*b^2*d)*Cos[e + f*x])/((a^2 - b^2)^2*(a + b*Sin[e + f*x])) - b^2*d^5*Sin[
2*(e + f*x)])/(4*b^5*f)

________________________________________________________________________________________

Maple [B]  time = 0.139, size = 4767, normalized size = 8.9 \begin{align*} \text{output too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c+d*sin(f*x+e))^5/(a+b*sin(f*x+e))^3,x)

[Out]

6/f*d^5/b^4/(1+tan(1/2*f*x+1/2*e)^2)^2*tan(1/2*f*x+1/2*e)^2*a-10/f*d^4/b^3/(1+tan(1/2*f*x+1/2*e)^2)^2*tan(1/2*
f*x+1/2*e)^2*c+7/f*b^3/(tan(1/2*f*x+1/2*e)^2*a+2*tan(1/2*f*x+1/2*e)*b+a)^2/(a^4-2*a^2*b^2+b^4)*tan(1/2*f*x+1/2
*e)^2*c^5+6/f/b^4/(tan(1/2*f*x+1/2*e)^2*a+2*tan(1/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4-2*a^2*b^2+b^4)*a*c^4*d+5/f/b^3/(tan(1/2*f*x+1/2*e)^2*a+2*tan(1/2*f*x+1/2*e)*b+a)^2/(a^4-2*a^2*b^2+b^4)*a^
6*tan(1/2*f*x+1/2*e)^3*d^5+60/f*b^3/(tan(1/2*f*x+1/2*e)^2*a+2*tan(1/2*f*x+1/2*e)*b+a)^2/(a^4-2*a^2*b^2+b^4)*ta
n(1/2*f*x+1/2*e)^2*c^3*d^2-20/f*b^3/(tan(1/2*f*x+1/2*e)^2*a+2*tan(1/2*f*x+1/2*e)*b+a)^2/(a^4-2*a^2*b^2+b^4)*ta
n(1/2*f*x+1/2*e)*c^4*d-1/f*b^3/(tan(1/2*f*x+1/2*e)^2*a+2*tan(1/2*f*x+1/2*e)*b+a)^2/(a^4-2*a^2*b^2+b^4)*c^5+1/f
*d^5/b^3/(1+tan(1/2*f*x+1/2*e)^2)^2*tan(1/2*f*x+1/2*e)^3-1/f*d^5/b^3/(1+tan(1/2*f*x+1/2*e)^2)^2*tan(1/2*f*x+1/
2*e)+6/f*d^5/b^4/(1+tan(1/2*f*x+1/2*e)^2)^2*a-10/f*d^4/b^3/(1+tan(1/2*f*x+1/2*e)^2)^2*c+12/f*d^5/b^5*arctan(ta
n(1/2*f*x+1/2*e))*a^2+20/f*d^3/b^3*arctan(tan(1/2*f*x+1/2*e))*c^2-30/f*d^4/b^4*arctan(tan(1/2*f*x+1/2*e))*a*c

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^5/(a+b*sin(f*x+e))^3,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [B]  time = 4.28043, size = 6529, normalized size = 12.23 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^5/(a+b*sin(f*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- a*b^9)*c^5 - 5*(a^4*b^6 + a^2*b^
8 - 2*b^10)*c^4*d - 10*(a^5*b^5 - 5*a^3*b^7 + 4*a*b^9)*c^3*d^2 + 30*(a^6*b^4 - 3*a^4*b^6 + 2*a^2*b^8)*c^2*d^3
- 5*(9*a^7*b^3 - 25*a^5*b^5 + 20*a^3*b^7 - 4*a*b^9)*c*d^4 + (18*a^8*b^2 - 51*a^6*b^4 + 46*a^4*b^6 - 14*a^2*b^8
 + b^10)*d^5)*cos(f*x + e))*sin(f*x + e))/((a^6*b^7 - 3*a^4*b^9 + 3*a^2*b^11 - b^13)*f*cos(f*x + e)^2 - 2*(a^7
*b^6 - 3*a^5*b^8 + 3*a^3*b^10 - a*b^12)*f*sin(f*x + e) - (a^8*b^5 - 2*a^6*b^7 + 2*a^2*b^11 - b^13)*f)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))**5/(a+b*sin(f*x+e))**3,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 1.52729, size = 4269, normalized size = 7.99 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^5/(a+b*sin(f*x+e))^3,x, algorithm="giac")

[Out]

1/2*(2*(2*a^2*b^5*c^5 + b^7*c^5 - 15*a*b^6*c^4*d + 10*a^2*b^5*c^3*d^2 + 20*b^7*c^3*d^2 - 20*a^5*b^2*c^2*d^3 +
50*a^3*b^4*c^2*d^3 - 60*a*b^6*c^2*d^3 + 30*a^6*b*c*d^4 - 75*a^4*b^3*c*d^4 + 60*a^2*b^5*c*d^4 - 12*a^7*d^5 + 29
*a^5*b^2*d^5 - 20*a^3*b^4*d^5)*(pi*floor(1/2*(f*x + e)/pi + 1/2)*sgn(a) + arctan((a*tan(1/2*f*x + 1/2*e) + b)/
sqrt(a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